<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="uiTags" prefix="ui"%>

<script type="text/javascript">
var roleAdd={
		roleAdd:function (){
			submitForm("formtable", "user/roleAdd", "closeCurrentTab()");
		}	
}
</script>
<ui:body>
	<div class="easyui-layout" style="width: 100%;height: 100%;" fit="true">
		<div data-options="region:'north',border:false" style="height: 140px">
			<ui:formtable id="formtable" >
				<ui:textinput id="role.name" label="角色名称" dataOptions="required:true"/>
				<ui:textinput id="role.code" label="角色编码" dataOptions="required:true"/>
				<ui:blank/>
			</ui:formtable>
		</div>

		<div data-options="region:'south',border:true"
			style="text-align: right;overflow: hidden;">
			<ui:button onclick="roleAdd.roleAdd()" icon="icon-ok" value="新增"  />
			<ui:button onclick="closeCurrentTab()" icon="icon-ok" value="关闭" />
		</div>
	</div>
</ui:body>
